package com.xiaoge.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**
* @Author: 冷俊杰
* @Description: TODO
* @DateTime: 2022/10/28 12:05
**/
/**
    * 课程分类
    */
@Data
@TableName(value = "edu_course_category")
public class EduCourseCategory {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)//创建时自动填充
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date gmtModified;

    /**
     * 状态(1:正常，0:禁用)
     */
    @TableField(value = "status_id")
    private Byte statusId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 分类类型(1课程，2资源)
     */
    @TableField(value = "category_type")
    private Byte categoryType;

    /**
     * 分类名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    public static final String COL_ID = "id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_STATUS_ID = "status_id";

    public static final String COL_SORT = "sort";

    public static final String COL_CATEGORY_TYPE = "category_type";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_REMARK = "remark";
}